From: Debian Science Maintainers Date: Tue, 9 Dec 2025 11:19:37 +0000 (+0000) Subject: numexpr 2.13.1 removed some warnings X-Git-Tag: archive/raspbian/2.3.3+dfsg-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9871cd64c18709c3a7acf7bfcc660dc316399731;p=pandas.git numexpr 2.13.1 removed some warnings Origin: upstream 5fc3df37d772befbdba7cc2bd3e9ce572fe607c0 Author: Álvaro Kothe Forwarded: not-needed Gbp-Pq: Name numexpr_v2p13_compat.patch --- diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 195126f1..567183e4 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -12,6 +12,7 @@ import numpy as np import pytest from pandas.compat import HAS_PYARROW +from pandas.compat._optional import import_optional_dependency import pandas.util._test_decorators as td import pandas as pd @@ -27,6 +28,7 @@ from pandas.tests.frame.common import ( _check_mixed_float, _check_mixed_int, ) +from pandas.util.version import Version @pytest.fixture @@ -1092,6 +1094,8 @@ class TestFrameArithmetic: (operator.mod, "complex128"), } + ne = import_optional_dependency("numexpr", errors="ignore") + ne_warns_on_op = ne is not None and Version(ne.__version__) < Version("2.13.1") if (op, dtype) in invalid: warn = None if (dtype == "